<?php defined('IN_YuLin') || exit('NO PERMIT!'); ?>
{template header}
	<style>
    	body{background: #fff;}
    </style>
    <div id="app">
        <div id="shadow" style="display: none;"></div>
        <header class="top"><span style="display: none;">加载中...</span><span>投注明细</span>
        <div class="iconfont back" style="display: none;">
        </div>
        <a href="{U('agent/index')}" class="iconfont back"></a><a href="" class="right" style="display: none;">客服</a></header>
        <div class="main" s="[object Object]" style="padding-bottom: 0;">
            <div class="textMore dataType">
                <em class="tag_choice_day">今天</em> 
        		<i class="iconfont"></i>
            </div>
            <div class="searchBtn">
                <div class="searchCon">
                    <input type="text" placeholder="下级投注查询" class="proxySearch">
                </div>
                <a id="submitBtn">
                <div class="submitTouch">
                    <i class="iconfont"></i>
                </div>
                </a>
            </div>
            <div id="leftTabBox">
                <div class="hd">
                    <ul>
                        <li class="on">全部</li>
                        <li>已中奖</li>
                        <li>未中奖</li>
                        <li>等待开奖</li>
                    </ul>
                </div>
                <div class="bd dontSelect">
                    <div class="scrollBox">
                        <div class="touchScroll">
                            <div class="fullPageMsg">
                                <div class="fullPageIcon iconfont">
                                    
                                </div>
                                <p>
                                    暂无记录
                                </p>
                            </div>
                        </div>
                    </div>
                    <div class="scrollBox">
                        <!---->
                    </div>
                    <div class="scrollBox">
                        <!---->
                    </div>
                    <div class="scrollBox">
                        <!---->
                    </div>
                </div>
            </div>
            <div class="_problemBox tag_choice_item" style="display: none;">
    			<div class="blackBg"></div> 
    			<div class="moreLayer">
    				<ul class="tag_choice_item_li">
    					<!--<li style="display: none;">
    						<a>选择登录帐号</a>
    					</li> -->
    					<li>
    						<a>今天</a> 
    					</li>
    					<p class="hr1px"></p>
    					<li>
    						<a>昨天</a> 
    					</li>
    					<p class="hr1px"></p>
    					<li>
    						<a>七天</a> 
    					</li>
    				</ul> 
    				<ul class="tag_choice_close">
    					<li>
    						<a>取消</a>
    					</li>
    				</ul>
    			</div>
    		</div>
            <div class="layShow" style="display: none;">
                <div class="topBG">
                    <a class="iconfont back"></a>
                    <div>
                        <em>注单详情</em>
                    </div>
                    <div style="float:right;width:20%">
                        <!---->
                    </div>
                </div>
                <div class="main">
                    <div class="tzHead">
                        <div class="fl iconfont">
                        </div>
                        <h1></h1>
                        <span></span>
                        <p>
                            第期
                        </p>
                    </div>
                    <table>
                    <tr>
                        <td>
                            投注时间
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            投注单号
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            投注金额
                        </td>
                        <td>
                            ¥元
                        </td>
                    </tr>
                    <tr>
                        <td>
                            派送奖金
                        </td>
                        <td>
                            ¥元
                        </td>
                    </tr>
                    <!---->
                    <tr>
                    </tr>
                    </table>
                    <section><header>我的投注</header>
                    <ul>
                        <li></li>
                        <li></li>
                    </ul>
                    </section>
                </div>
            </div>
        </div>
        <!---->
    </div>
    {template footer}
    <script type="text/javascript">
    	$(".hd li").on("click",function(){
    		$(this).addClass("on").siblings().removeClass("on");
    		$(".dontSelect").hide();
    		layer.load(1,{
    			time:1000
    		});
    		setTimeout(function(){
    			$(".dontSelect").show();
    		},1000)
    	})
    	
    	//查询
    	$(".submitTouch").on("click",function(){
    		var val = $(".proxySearch").val();
    		if(!val){
    			layer.alert("请输入投注号码",{
    				title:'温馨提示'
    			})
    		}else{
    			//执行ajax请求查询
    			$(".dontSelect").hide();
    			layer.load(1,{
    				time:1000
	    		});
	    		setTimeout(function(){
	    			$(".dontSelect").show();
	    			$(".proxySearch").val("");
	    		},1000)
    		}
    	})
    	//用户选择哪天的记录
		$('.tag_choice_day').on('click', '', function (){
			$('.tag_choice_item').show();
		})
		$('.tag_choice_close').on('click', '', function (){
			$('.tag_choice_item').hide();
		})
    	// 查看哪个时间段的投注订单
		var choice_day = 'today';
		$('.tag_choice_item_li li').on('click','', function (){
			var check = $(this).index();
			console.log(check)
			if(check == '0'){
				choice_day = 'today';
				$('.tag_choice_day').html('今天');
			}else if (check == '2'){
				choice_day = 'yesterday';
				$('.tag_choice_day').html('昨天');
			}else if (check == '4'){
				choice_day = 'benyue';
				$('.tag_choice_day').html('七天');
			}
			$('.tag_choice_item').hide();
		})
    </script>
</html>
